<?php if (!defined('THINK_PATH')) exit();?><!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>我的博客</title>
    <link rel="stylesheet" href="__STATIC__/bs/css/bootstrap.min.css">
</head>
<body>
<!-- Static navbar -->
<div class="navbar navbar-default navbar-static-top" role="navigation">
    <div class="container">

        <div class="navbar-collapse collapse">
            <ul class="nav navbar-nav" id="navBar">
                <li><a href="<?php echo U('/Index');?>">文章列表</a></li>

            </ul>

            <ul class="nav navbar-nav navbar-left">
                <li><a href="<?php echo U('/Public/login');?>">管理员入口</a></li>
            </ul>
            <ul class="nav navbar-nav navbar-right">
                <li><a href="<?php echo U('/Public/logout');?>">注销</a></li>
            </ul>

        </div>
    </div>
</div>


<?php if(is_array($articles)): foreach($articles as $key=>$articles): ?><div class="box nslist">
        <ul>
            <li class="cf">
                <div class="info-txt">
                    <div class="entry-title">
                        <a href="Contents/detail/id/<?php echo ($articles["id"]); ?>"><?php echo ($articles["title"]); ?></a>

                    </div>
                    <div class="taginfo">
            <span>
				<em>更新时间：<?php echo ($articles["updatetime"]); ?></em>
			</span>
                    </div>
                    <div class="intro info-intro"><?php echo ($articles["content"]); ?></div>
                </div>
            </li>
        </ul>
    </div><?php endforeach; endif; ?>